package com.File.A01File;

import java.io.File;
import java.io.IOException;

public class Test01 {
    public static void main(String[] args) throws IOException {
        File file = new File("untitled\\aaa");
        // 创建父级路径
        file.mkdirs();
        File src = new File(file, "a.txt");
        src.createNewFile();
        System.out.println(file.exists());
    }
}
